import Vue from 'vue'
import VueRouter from 'vue-router'
import login from "../views/login.vue";
import search from "../views/search.vue";
import home from "../views/home.vue";
import BBT from "../views/baobaotuan.vue";

Vue.use(VueRouter)


const router = new VueRouter({
    routes: [
        {
            path: '/',
            component: BBT
        },
        {
            path: '/login',
            component: login
        },
        {
            path:'/search',
            component:search
        },
        {
            path:'/home',
            component:home
        },
        {
            path:'/BBT',
            component:BBT
        },
    ]
},
    {
        path: "/login",
        component: login
    },
    {
        path: "/search",
        component: search
    },
    {
        path: "/home",
        component: home
    },
    {
        path: "/BBT",
        component: BBT
    },
)


export default router